using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class OE_StatusLogMap : EntityTypeConfiguration<OE_StatusLog>
    {
        public OE_StatusLogMap()
        {
            // Primary Key
            this.HasKey(t => t.id);

            // Properties
            this.Property(t => t.Status)
                .IsFixedLength()
                .HasMaxLength(1);

            // Table & Column Mappings
            this.ToTable("OE_StatusLog");
            this.Property(t => t.id).HasColumnName("id");
            this.Property(t => t.Order).HasColumnName("Order");
            this.Property(t => t.User).HasColumnName("User");
            this.Property(t => t.date).HasColumnName("date");
            this.Property(t => t.Status).HasColumnName("Status");
        }
    }
}
